<?php
class User extends MModel{
    static $table_name = 'ml_users';
    static $before_create = array('hashPassword');
    
    public function hashPassword(){
        $this->password = sha1($this->password);
    }
}
?>
